#!/bin/bash

#https://hadoop.apache.org/releases.html
wget -nc https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/hadoop-3.4.0/hadoop-3.4.0.tar.gz
tar -zxvf hadoop-3.4.0.tar.gz
mv hadoop-3.4.0 /usr/local

apt install openjdk-8-jdk
java -version

ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys